package com.hc.tenant.domain;

import java.math.BigDecimal;
import com.hc.common.core.annotation.Excel;
import com.hc.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 菜肴对象 t_dish
 * 
 * @author yongjianz
 * @date 2021-02-06
 */
public class Dish extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long dishId;

    /** 菜肴名称 */
    @Excel(name = "菜肴名称")
    private String dishName;

    /** 价格（元） */
    @Excel(name = "价格", readConverterExp = "元=")
    private BigDecimal price;

    /** 规格 */
    @Excel(name = "规格")
    private Integer unit;

    /** 删除 */
    private String delFlag;

    public void setDishId(Long dishId)
    {
        this.dishId = dishId;
    }

    public Long getDishId()
    {
        return dishId;
    }
    public void setDishName(String dishName)
    {
        this.dishName = dishName;
    }

    public String getDishName()
    {
        return dishName;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setUnit(Integer unit)
    {
        this.unit = unit;
    }

    public Integer getUnit()
    {
        return unit;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("dishId", getDishId())
                .append("dishName", getDishName())
                .append("price", getPrice())
                .append("createBy", getCreateBy())
                .append("unit", getUnit())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .append("remark", getRemark())
                .toString();
    }
}
